package cn.dgut.Entity;

public class StudentWorks {
    private int StudentWorks_id;
    private String student_name;
    private int views;
    private String time;
    private String content;

    public StudentWorks() {
    }

    public StudentWorks(int studentWorks_id, String student_name, int views, String time, String content) {
        StudentWorks_id = studentWorks_id;
        this.student_name = student_name;
        this.views = views;
        this.time = time;
        this.content = content;
    }

    public int getStudentWorks_id() {
        return StudentWorks_id;
    }

    public void setStudentWorks_id(int studentWorks_id) {
        StudentWorks_id = studentWorks_id;
    }

    public String getStudent_name() {
        return student_name;
    }

    public void setStudent_name(String student_name) {
        this.student_name = student_name;
    }

    public int getViews() {
        return views;
    }

    public void setViews(int views) {
        this.views = views;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        content = content.replace("\"","'");
        return "{" +
                "\"name1\":\"" + student_name  +
                "\",\"name2\":\"" + content  +
                "\"}";
    }
}
